package org.luxor.commons.elasticsearch.entity;

import java.util.Date;

/**
 * ES日志记录
 *
 * @author Mr.Yan  @date 2019/11/25
 */
public class LogEsPO {

    private Long id;
    private String userName;
    private String ipAddress;
    private String traceId;

    private Date time;
    private String level;
    private String application;
    private String message;

    public LogEsPO() {
    }

    public LogEsPO(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getTraceId() {
        return traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getApplication() {
        return application;
    }

    public void setApplication(String application) {
        this.application = application;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "LogEsDTO{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", ipAddress='" + ipAddress + '\'' +
                ", traceId=" + traceId +
                ", time=" + time +
                ", level='" + level + '\'' +
                ", application='" + application + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
